//
//  KeHuTableViewCell.m
//  ErJie
//
//  Created by yaorenjin on 2017/1/30.
//  Copyright © 2017年 yaorenjin. All rights reserved.
//

#import "KeHuTableViewCell.h"
#import "KeHuEntity+CoreDataProperties.h"

@implementation KeHuTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)reloadData:(KeHuEntity*)khEntity
{
    self.nameLabel.text = khEntity.name;
    [self.phoneBtn setTitle:khEntity.phone forState:UIControlStateNormal];
    self.beizhuLabel.text = khEntity.beizhu;
    self.dizhiLabel.text = khEntity.address;
}

- (IBAction)phoneBtnClick:(id)sender {
    
//    NSMutableString* str=[[NSMutableString alloc] initWithFormat:@"telprompt://%@",self.phoneBtn.titleLabel.text];
//    // NSLog(@"str======%@",str);
//    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}
@end
